import { _decorator, Component, Enum, Node } from 'cc';
import { PlatformType, SDKSystem } from '../../Init/SystemSDK/SDKSystem';
const { ccclass, property } = _decorator;

@ccclass('PlatformSwitch')
export class PlatformSwitch extends Component {
    // 需要展示的平台
    @property({ type: Enum(PlatformType) })
    platforms: PlatformType[] = [];

    protected start(): void {
        this.node.active = this.platforms.indexOf(SDKSystem._curPlatform) >= 0;
    }

}

